/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.soc.cs5226.gui.entities;

import edu.soc.cs5226.gui.entities.util.Constants;
import java.sql.Timestamp;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author huijia
 */
@ManagedBean
public class SortMemory implements DBParameter {
    private Timestamp dateTime;
    private long sortsMemory = 0;
    private long sortsDisk = 0;
    private long sortingToDisk = 0;
    private String s_healthStatus;
        
    public String getActualTime() {
        return Constants.DATEFORMAT.format(dateTime.getTime());
    }
    
    public Timestamp getdateTime() {
        return dateTime;
    }

    public void setdateTime(Timestamp dateTime) {
        this.dateTime = dateTime;
    }

    public String getS_healthStatus() {
        return s_healthStatus;
    }

    public void setS_healthStatus(String s_healthStatus) {
        this.s_healthStatus = Constants.convertStatus(s_healthStatus);
    }

    public long getSortingToDisk() {
        return sortingToDisk;
    }

    public void setSortingToDisk(long sortingToDisk) {
        this.sortingToDisk = sortingToDisk;
    }

    public long getSortsDisk() {
        return sortsDisk;
    }

    public void setSortsDisk(long sortsDisk) {
        this.sortsDisk = sortsDisk;
    }

    public long getSortsMemory() {
        return sortsMemory;
    }

    public void setSortsMemory(long sortsMemory) {
        this.sortsMemory = sortsMemory;
    }
}
